#ifndef CARD_H
#define CARD_H

#include <QObject>


//卡牌类的枚举：枚举花色和点数
enum CardPoint
{
   C_Begin,
   C_3,
   C_4,
   C_5,
   C_6,
   C_7,
   C_8,
   C_9,
   C_10,
   C_J,
   C_Q,
   C_K,
   C_SJ,
   C_BJ,
   C_End
};

enum SUIT
{
   S_begin,
   S_hearts,
   S_diamonds,
   S_spades,
   S_clubs,
   S_end
};

class Card
{
public:
    Card();
    Card(CardPoint point,SUIT suit);
    //卡牌类要做的事情:1,设置与获取点数  2，设置与获取花色
    void setPoint(const CardPoint& point);
    CardPoint getPoint();
    void setSuit(const SUIT&suit);
    SUIT getSuit();

    CardPoint C_Point;
    SUIT C_Suit;

};

#endif // CARD_H

//重写hash和==
bool operator==(const Card&left,const Card&right);
uint qHash(const Card&card);
